package seata.order.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import seata.order.service.OrderService;

@RestController
@RequiredArgsConstructor
public class OrderController {
	final OrderService orderService;

	@GetMapping(value = "/create", produces = "application/json")
	public Boolean create(String userId, String commodityCode, Integer count) {
		orderService.create(userId, commodityCode, count);
		return true;
	}
}